class Baby {
  static mapping = {
    table 'yuying_baby'
  }
  String nickName
  String realName
  Date birth
  Date datePregnant
  Date expectedBirth
  Boolean gender
  String headImg
  Person person
  Date dateCreated
  Date lastUpdated
  static constraints = {
    realName(nullable: false)
    nickName(blank: true, nullable: true)
    birth(nullable: true)
    datePregnant(nullable:true)
    expectedBirth(nullable: true)
    gender(nullable: true)
    headImg(nullable: true)
  }

  def babyService
  static transients =  ["babyService"]
  def getStage(){
    return babyService.getStage(this)
  }
}
